package com.znufe.exam.viewmodel.student.lecturer;

import com.znufe.exam.domain.Lecturer;
import com.znufe.exam.viewmodel.BaseVM;
import lombok.Data;

@Data
/**
 * @author gong
 */
public class LecturerResponseVm extends BaseVM {
    private Integer id;

    private String lecturerName;

    private String photoPath;

    private Integer professionalTitle;

    private String introduction;

    public static LecturerResponseVm from(Lecturer lecturer){
        LecturerResponseVm vm = modelMapper.map(lecturer,LecturerResponseVm.class);
        return vm;
    }
}
